package com.woniuxy.service;

import com.woniuxy.dto.goodsGeneralAndSmallAndBrand.PageGoodsGeneralDto;
import com.woniuxy.dto.goodsGeneralAndSmallAndBrand.GoodsGeneralDto;
import com.woniuxy.dto.goodsGeneralAndSmallAndBrand.UpdateGoodsGeneralDto;
import com.woniuxy.entity.GoodsGeneral;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.param.goodsGeneralAndSmallAndBrand.AddGoodsGeneralParam;
import com.woniuxy.param.goodsGeneralAndSmallAndBrand.DeleteGeneralParam;
import com.woniuxy.param.goodsGeneralAndSmallAndBrand.ListGoodsGeneralParam;
import com.woniuxy.param.goodsGeneralAndSmallAndBrand.UpdateGoodsGeneralParam;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zcx, ftl, gr, rhs
 * @since 2021-12-31
 */
public interface GoodsGeneralService extends IService<GoodsGeneral> {


    /*
    新增大类信息
     */
    GoodsGeneralDto saveGeneralInfo(AddGoodsGeneralParam addGoodsGeneralParam);


    /*
    分页+名称查询
     */
    PageGoodsGeneralDto pageFind(ListGoodsGeneralParam listGoodsGeneralParam);

    /*
    修改大类信息
     */
    UpdateGoodsGeneralDto updateGeneralInfo(UpdateGoodsGeneralParam updateGoodsGeneralParam);

    /*
    删除大类信息
     */
    Boolean deleteGoodsGeneral(DeleteGeneralParam deleteGeneralParam);

    /**
     * 查询所有大类，redis
     *
     * @return
     */
    List<GoodsGeneralDto> listGeneralDtos(Integer generalId);


}
